home *** CD-ROM | disk | FTP | other *** search
- Path: cerfacs.fr!muller
- From: muller@cerfacs.fr (Muller Jens Dominik)
- Newsgroups: comp.lang.c
- Subject: Q: pointer to const
- Date: 28 Mar 1996 03:06:40 GMT
- Organization: C.E.R.F.A.C.S., Toulouse, France
- Distribution: world
- Message-ID: <4jcvo0$9v9@zephyr.cerfacs.fr>
- NNTP-Posting-Host: io.cerfacs.fr
-
- Maybe it is obvious, but why doesn't the SGI ( and Alpha )
- compiler allow me to copy the pointer to const? I am not
- attempting to change the pointed to const. Jens.
-
- void chk_cnst ( const double *Pdata )
- {
- double *Psome ;
- Psome = Pdata ;
- }
-
- cc -c t2.c
- cfe: Warning 709: t2.c, line 4: Incompatible pointer type assignment
- Psome = Pdata ;
- --------^
-
- -----------------------------------------------------------------------
- | " Shouldn't you be at the controls? If you insist" |
- | Robert Urich and Mary Crosby in 'The Ice Pirates' |
- | |
- | Jens-Dominik Mueller, CERFACS, Toulouse, muller@cerfacs.fr |
- -----------------------------------------------------------------------
-